export const getNowDate = ()=>{
    // YYYY-MM-DD HH:mm:ss
    const nowDate = new Date()
    const YYYY = nowDate.getFullYear()

    const mouth = nowDate.getMonth()+1
    const MM = mouth>9?mouth:('0'+mouth)

    const day = nowDate.getDate();
    const DD = day>9?day:('0'+day)

    const hour= nowDate.getHours();//得到小时数
    const hh = hour>9?hour:('0'+hour)

    var minute= nowDate.getMinutes();//得到分钟数
    const mm = minute>9?minute:('0'+minute)

    var second= nowDate.getSeconds();//得到秒数
    const ss = second>9?second:('0'+second)

    return `${YYYY}-${MM}-${DD} ${hh}:${mm}:${ss}`
}